package com.yanxiaohui.user.service;

import com.yanxiaohui.user.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description TODO
 * @Author： yanxh<br>
 * @Date 2019/11/12 16:27<br>
 * @Version 1.0<br>
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    @Transactional
    public int addUser(String name){
        return userMapper.addUser(name);
    }
}
